/**
 * Created by jhg on 2017/4/9.
 */

 
//加载的时候运行

$(function(){
	FindData();

	// 查询按钮
	$('#search').click(function(){
		FindData();
	});

});

//查找数据
function FindData(){
	var param_name = $("#param_name").val();
	
	$.ajax({
		url:serverPath + "PV/find",
		xhrFields:{ withCredentials:true},
		data:{"param_name":param_name,"other":"test"},
		dataType:"json",
		success:function(result){
			//alert("query pv success");
			var data=result.data;
			$("#paramValueTable").bootstrapTable('load', data);
		},
		error:function(){
			alert("query pv error;");
		}
	});
}